package com.wlanauth.domain.manage;

import java.util.Set;

import com.wlanauth.core.domain.Entity;
/**
 * 系统资源
 * @author zz
 * @date 2012-7-9
 * @email charles.zz.life@gmail.com
 */
public class SystemResource extends Entity {
	
	private static final long serialVersionUID = 1L;
	/**
	 * 前台菜单或按钮
	 */
	public static final String TYPE_MENU = "MENU";
	/**
	 * 后台操作
	 */
	public static final String TYPE_ACTION = "ACTION";
	
	public static final String ID_ROOT = "ROOT";
	
	private String id;
	
	private String code;
	private String name;
	private String type;
	private String value;
	private String parentId;
	
	private Set<Role> roles;
	
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public String getParentId() {
		return parentId;
	}
	public void setParentId(String parentId) {
		this.parentId = parentId;
	}
	public Set<Role> getRoles() {
		return roles;
	}
	public void setRoles(Set<Role> roles) {
		this.roles = roles;
	}
	
}
